.class public Lcom/example/m6wmr/ShopimgActivity$MyAdapter;
.super Landroid/support/v4/view/PagerAdapter;
.source "ShopimgActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/example/m6wmr/ShopimgActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x1
    name = "MyAdapter"
.end annotation


# instance fields
.field private array:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lbean/Shopimg;",
            ">;"
        }
    .end annotation
.end field

.field private eventClick:Lutil/EventClick;

.field private list:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Landroid/widget/ImageView;",
            ">;"
        }
    .end annotation
.end field

.field final synthetic this$0:Lcom/example/m6wmr/ShopimgActivity;


# direct methods
.method public constructor <init>(Lcom/example/m6wmr/ShopimgActivity;Ljava/util/List;Ljava/util/List;Lutil/EventClick;)V
    .locals 1
    .param p4, "eventClick"    # Lutil/EventClick;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List",
            "<",
            "Lbean/Shopimg;",
            ">;",
            "Ljava/util/List",
            "<",
            "Landroid/widget/ImageView;",
            ">;",
            "Lutil/EventClick;",
            ")V"
        }
    .end annotation

    .prologue
    .line 198
    .local p2, "listcx":Ljava/util/List;, "Ljava/util/List<Lbean/Shopimg;>;"
    .local p3, "list":Ljava/util/List;, "Ljava/util/List<Landroid/widget/ImageView;>;"
    iput-object p1, p0, Lcom/example/m6wmr/ShopimgActivity$MyAdapter;->this$0:Lcom/example/m6wmr/ShopimgActivity;

    .line 197
    invoke-direct {p0}, Landroid/support/v4/view/PagerAdapter;-><init>()V

    .line 193
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/ShopimgActivity$MyAdapter;->array:Ljava/util/ArrayList;

    .line 194
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/ShopimgActivity$MyAdapter;->list:Ljava/util/List;

    .line 199
    check-cast p2, Ljava/util/ArrayList;

    .end local p2    # "listcx":Ljava/util/List;, "Ljava/util/List<Lbean/Shopimg;>;"
    iput-object p2, p0, Lcom/example/m6wmr/ShopimgActivity$MyAdapter;->array:Ljava/util/ArrayList;

    .line 200
    iput-object p3, p0, Lcom/example/m6wmr/ShopimgActivity$MyAdapter;->list:Ljava/util/List;

    .line 201
    iput-object p4, p0, Lcom/example/m6wmr/ShopimgActivity$MyAdapter;->eventClick:Lutil/EventClick;

    .line 202
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/ShopimgActivity$MyAdapter;)Lutil/EventClick;
    .locals 1

    .prologue
    .line 195
    iget-object v0, p0, Lcom/example/m6wmr/ShopimgActivity$MyAdapter;->eventClick:Lutil/EventClick;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/m6wmr/ShopimgActivity$MyAdapter;)Ljava/util/ArrayList;
    .locals 1

    .prologue
    .line 193
    iget-object v0, p0, Lcom/example/m6wmr/ShopimgActivity$MyAdapter;->array:Ljava/util/ArrayList;

    return-object v0
.end method


# virtual methods
.method public destroyItem(Landroid/view/View;ILjava/lang/Object;)V
    .locals 0
    .param p1, "arg0"    # Landroid/view/View;
    .param p2, "arg1"    # I
    .param p3, "arg2"    # Ljava/lang/Object;

    .prologue
    .line 226
    check-cast p1, Landroid/support/v4/view/ViewPager;

    .end local p1    # "arg0":Landroid/view/View;
    check-cast p3, Landroid/view/View;

    .end local p3    # "arg2":Ljava/lang/Object;
    invoke-virtual {p1, p3}, Landroid/support/v4/view/ViewPager;->removeView(Landroid/view/View;)V

    .line 227
    return-void
.end method

.method public finishUpdate(Landroid/view/View;)V
    .locals 0
    .param p1, "arg0"    # Landroid/view/View;

    .prologue
    .line 252
    return-void
.end method

.method public getCount()I
    .locals 1

    .prologue
    .line 206
    iget-object v0, p0, Lcom/example/m6wmr/ShopimgActivity$MyAdapter;->list:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0
.end method

.method public instantiateItem(Landroid/view/View;I)Ljava/lang/Object;
    .locals 3
    .param p1, "arg0"    # Landroid/view/View;
    .param p2, "arg1"    # I

    .prologue
    .line 211
    check-cast p1, Landroid/support/v4/view/ViewPager;

    .end local p1    # "arg0":Landroid/view/View;
    iget-object v1, p0, Lcom/example/m6wmr/ShopimgActivity$MyAdapter;->list:Ljava/util/List;

    invoke-interface {v1, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/view/View;

    invoke-virtual {p1, v1}, Landroid/support/v4/view/ViewPager;->addView(Landroid/view/View;)V

    .line 212
    move v0, p2

    .line 213
    .local v0, "index":I
    iget-object v1, p0, Lcom/example/m6wmr/ShopimgActivity$MyAdapter;->list:Ljava/util/List;

    invoke-interface {v1, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    new-instance v2, Lcom/example/m6wmr/ShopimgActivity$MyAdapter$1;

    invoke-direct {v2, p0, v0}, Lcom/example/m6wmr/ShopimgActivity$MyAdapter$1;-><init>(Lcom/example/m6wmr/ShopimgActivity$MyAdapter;I)V

    invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 221
    iget-object v1, p0, Lcom/example/m6wmr/ShopimgActivity$MyAdapter;->list:Ljava/util/List;

    invoke-interface {v1, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    return-object v1
.end method

.method public isViewFromObject(Landroid/view/View;Ljava/lang/Object;)Z
    .locals 1
    .param p1, "arg0"    # Landroid/view/View;
    .param p2, "arg1"    # Ljava/lang/Object;

    .prologue
    .line 231
    if-ne p1, p2, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method public restoreState(Landroid/os/Parcelable;Ljava/lang/ClassLoader;)V
    .locals 0
    .param p1, "arg0"    # Landroid/os/Parcelable;
    .param p2, "arg1"    # Ljava/lang/ClassLoader;

    .prologue
    .line 237
    return-void
.end method

.method public saveState()Landroid/os/Parcelable;
    .locals 1

    .prologue
    .line 241
    const/4 v0, 0x0

    return-object v0
.end method

.method public startUpdate(Landroid/view/View;)V
    .locals 0
    .param p1, "arg0"    # Landroid/view/View;

    .prologue
    .line 247
    return-void
.end method
